package com.xuecheng.learning.client;

import com.xuecheng.framework.client.XcServiceList;
import com.xuecheng.framework.domain.course.TeachPlanMediaPub;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhaoxiang
 * @version 1.0
 * @Date 2020/1/3 14:29
 */
@FeignClient(value = XcServiceList.XC_SERVICE_SEARCH)
public interface CourseSearchClient {

    /**
     * 根据课程计划id查询课程媒资
     *
     * @param teachplanId
     * @return
     */
    @GetMapping(value="/search/course/getmedia/{teachPlanId}")
    public TeachPlanMediaPub getmedia(@PathVariable("teachPlanId") String teachplanId);
}

